package net.akkz.server;

import java.util.ArrayList;

import net.akkz.model.Answer;
import net.akkz.model.Question;

public interface QuestionServer
{
	public void addQuestion(Question question);
	
	public ArrayList<Question> findQuestion(int start, int end);
	
	public ArrayList<Question> findQuestionOrderByGoodNum(int start, int end);
	
	public ArrayList<Question> findQuestionWithKind(int start, int end, int kind);
	
	public ArrayList<Question> findQuestionOrderByGoodNumWithKind(int start, int end, int kind);
	
	public ArrayList<Question> findQuestionByStudentId(int studentId);
	
	public Question getQuestion(int id);
	
	public void deleteQuestion(int id, int studentid);
	
	
	public void addAnswer(Answer answer);
	
	public ArrayList<Answer> findAnswerByQuestionId(int questionId);
	
	public void deleteAnswer(int id);
}
